//package com.sunshine.ssm.redis;
//
//import com.sunshine.ssm.system.RedisService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.redis.connection.Message;
//import org.springframework.data.redis.connection.MessageListener;
//
///**
// * @Author: WeiHong
// * @Date: 2017/5/18 16:50
// */
//public class RedisListener implements MessageListener {
//
//    private static final Logger LOGGER = LoggerFactory.getLogger(RedisListener.class);
//
//    @Autowired
//    private RedisService redisService;
//
//    @Override
//    public void onMessage(Message message, byte[] pattern) {
//        LOGGER.info("----------------缓存监听成功----------------");
//        System.out.println("message:" + message);
//    }
//}
